package top.cwk.eurekal.RibbonConsumer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import top.cwk.eurekal.RibbonConsumer.service.HelloService;

@RestController
public class TestController {

    @Autowired
    private HelloService helloService;

    @RequestMapping("/hello")
    public String hi(@RequestParam String name){
        return helloService.hiService(name);
    }

    @RequestMapping("/sayHello")
    public String sayHello(){
        return "Hello , I am RibbonConsumer!";
    }

}


